//
//  ParameterContentCollectionViewCell.m
//  Project_A Gary
//
//  Created by leilei on 16/4/8.
//  Copyright © 2016年 www.lei.com. All rights reserved.
//

#import "ParameterContentCollectionViewCell.h"

@implementation ParameterContentCollectionViewCell

-(void)dealloc
{
    [_lab release];
    [super dealloc];
    
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.lab = [[UILabel alloc] init];
        self.lab.backgroundColor = [UIColor whiteColor];
        self.lab.numberOfLines = 0;
        self.lab.textAlignment = NSTextAlignmentCenter;
        self.lab.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.lab];
        [_lab release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    self.lab.frame = CGRectMake(0, 0, (BOUNDS_WIDTH - 4) / 2, 40);
    
}


@end
